﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity
{
    /// <summary>
    /// Order_Master
    /// </summary>
    [Table("Order_Master")]
    public class Order_Master
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// CreatorId
        /// </summary>
        public String CreatorId { get; set; }
        /// <summary>
        /// num 数量
        /// </summary>
        public int? Totalnum { get; set; }

        /// <summary>
        /// CreatorIdExternalOrder
        /// </summary>
        public String ExternalOrder { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// Deleted
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public String OrderCode { get; set; }

        /// <summary>
        /// 收货人信息
        /// </summary>
        public String Address_Id { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        public Int32? OrderState { get; set; }

        /// <summary>
        /// 退款前订单状态(1.代发货、2.已发货、3.已收货)
        /// </summary>
        public int? RefundState { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public Int32? PayState { get; set; }

        /// <summary>
        /// 总价格
        /// </summary>
        public Decimal? TotalPrice { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 抬头Id
        /// </summary>
        public String Invoice_InfoId { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public long? unixTime { get; set; }

        /// <summary>
        /// DATA1
        /// </summary>
        public String DATA1 { get; set; }

        /// <summary>
        /// DATA2
        /// </summary>
        public String DATA2 { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 收款人姓名
        /// </summary>
        public String payeinfoName { get; set; }

        /// <summary>
        /// 收款人地址
        /// </summary>
        public String payeinfoAddress { get; set; }

        /// <summary>
        /// 收款人电话
        /// </summary>
        public String payeinfoPhone { get; set; }

        /// <summary>
        /// 是否积分商品订单
        /// </summary>
        public Boolean IsPointOrder { get; set; } = false;

        /// <summary>
        /// 总积分数量
        /// </summary>
        public int? TotalPoint { get; set; } = 0;

        /// <summary>
        /// 代金券Id
        /// </summary>
        public String VailTicketId { get; set; }

        /// <summary>
        ///应收金额
        /// </summary>
        public decimal YSMoney { get; set; } = 0;

        /// <summary>
        /// 是否已评论
        /// </summary>
        public Boolean IsDiscuss { get; set; } = false;

        /// <summary>
        /// 物流公司
        /// </summary>
        public String LscCompany { get; set; }

        /// <summary>
        /// 物流号码
        /// </summary>
        public String LscNumber { get; set; }

        /// <summary>
        /// 发票信息
        /// </summary>
        public String InvoiceData { get; set; }

        /// <summary>
        /// 发票状态
        /// </summary>
        public int InvoiceState { get; set; } = 0;

    }
}